package com.banach.prema.dto.query;

import com.alibaba.fastjson.annotation.JSONField;
import com.banach.prema.enums.SosType;
import com.ego.framework.annotation.ReqParam;
import com.ego.framework.dto.PageQuery;

import java.time.LocalDateTime;

/**
 * @Author ajun
 * @Desc
 * @Date 2025/5/20 16:18
 */
public class SosPageQuery extends PageQuery {
    @ReqParam(label = "求救类型",enumClass = SosType.class)
    private String type;//110,120,119

    @ReqParam(label = "开始时间")
    private LocalDateTime  beginTime;

    @ReqParam(label = "结束时间")
    private LocalDateTime  endTime;

    private String mobile;
    @JSONField(deserialize = false)
    private Long userId;//求救人

    private String userName;//求救人

    public String getType() {
        return type;
    }

    public SosPageQuery setType(String type) {
        this.type = type;
        return this;
    }

    public LocalDateTime getBeginTime() {
        return beginTime;
    }

    public SosPageQuery setBeginTime(LocalDateTime beginTime) {
        this.beginTime = beginTime;
        return this;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public SosPageQuery setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public SosPageQuery setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public SosPageQuery setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public SosPageQuery setUserName(String userName) {
        this.userName = userName;
        return this;
    }
}
